package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MesWorkMapper;
import com.ruoyi.system.domain.MesWork;
import com.ruoyi.system.service.IMesWorkService;

/**
 * 报工Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-01
 */
@Service
public class MesWorkServiceImpl implements IMesWorkService 
{
    @Autowired
    private MesWorkMapper mesWorkMapper;

    /**
     * 查询报工
     * 
     * @param id 报工主键
     * @return 报工
     */
    @Override
    public MesWork selectMesWorkById(Integer id)
    {
        return mesWorkMapper.selectMesWorkById(id);
    }

    /**
     * 查询报工列表
     * 
     * @param mesWork 报工
     * @return 报工
     */
    @Override
    public List<MesWork> selectMesWorkList(MesWork mesWork)
    {
        return mesWorkMapper.selectMesWorkList(mesWork);
    }

    /**
     * 新增报工
     * 
     * @param mesWork 报工
     * @return 结果
     */
    @Override
    public int insertMesWork(MesWork mesWork)
    {
        return mesWorkMapper.insertMesWork(mesWork);
    }

    /**
     * 修改报工
     * 
     * @param mesWork 报工
     * @return 结果
     */
    @Override
    public int updateMesWork(MesWork mesWork)
    {
        return mesWorkMapper.updateMesWork(mesWork);
    }

    /**
     * 批量删除报工
     * 
     * @param ids 需要删除的报工主键
     * @return 结果
     */
    @Override
    public int deleteMesWorkByIds(Integer[] ids)
    {
        return mesWorkMapper.deleteMesWorkByIds(ids);
    }

    /**
     * 删除报工信息
     * 
     * @param id 报工主键
     * @return 结果
     */
    @Override
    public int deleteMesWorkById(Integer id)
    {
        return mesWorkMapper.deleteMesWorkById(id);
    }

    @Override
    public List<String> workProcessList(String taskCardId)
    {

        return mesWorkMapper.workProcessList(taskCardId);
    }
}
